//
// Created by ZhuanZ（无密码） on 2025/2/5.
//
#include "stdio.h"
int outnum(int x);
int main()
{
    int num = 0;
    int result = 0;
    printf("输入num的值：\n");
    scanf("%d",&num);
    result = outnum(num);
    printf("结果为%d",result);
    return 0;
}
int outnum(int x)
{
    if(x<5){
        return x;
    } else if(x>=5 && x < 15)
    {
        return x + 6;
    } else
    {
        return x - 6;
    }
}